<?php
require '../config.php';
$codigo = $_REQUEST['codigo'];

$result = mysql_query("select dinero from tarifas where idtarifas = '". $codigo ."'",$conexion) or die("Problemas al guardar datos.".mysql_error()); 

if(mysql_num_rows($result)>0){
	$row = mysql_fetch_array($result);
	echo($row['dinero']);
}else{
	echo 0;
}
?>